package com.imooc.trading_system.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Feng zhaoxi
 * @date 2022/5/3 3:00 下午
 * @Description
 */
@Data
public class GetMyOrderRespVO {
    @JsonProperty(value = "order_id")
    private Integer orderId;
    @JsonProperty(value = "product_title")
    private String productTitle;
    @JsonProperty(value = "product_cover_img")
    private String productCoverImg;
    @JsonProperty(value = "publish_user_name")
    private String publishUserName;
    @JsonProperty(value = "product_price")
    private BigDecimal productPrice;
    @JsonProperty(value = "buy_count")
    private Integer buyCount;
    @JsonProperty(value = "total_price")
    private BigDecimal totalPrice;
    private String logistics;
    @JsonProperty(value = "order_status")
    private Integer orderStatus;
    @JsonProperty(value = "create_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonProperty(value = "order_no")
    private String orderNo;
}
